<include file="public:header" />
<!--列表-->
<div class="pad_lr_10">
    <div class="J_tablelist table_list" data-acturi="{:U('attribute/ajax_edit')}">
    <table width="100%" cellspacing="0" id="J_cate_tree">
        <thead>
            <tr>
                <th width="30"><input type="checkbox" name="checkall" class="J_checkall"></th>
                <th width="40">ID</th>
              	<th align="center"><span data-tdtype="order_by" data-field="addTime">发起时间</span></th>
                
                <th align="center">渠道</th>
                <th align="center">所属厅店</th>
                <th align="center">所属城市</th>
                <th width="60"><span data-tdtype="order_by" data-field="addUserId">报修人</span></th> 
                <if condition="$faultType eq 'modelFault'">             
              	 <th width="80"><span data-tdtype="order_by" data-field="imei">IMEI</span></th>
                </if> 
                <foreach name="attrList" item="item">
                    <th align="center">{$item.name}</th>
                </foreach>
                
                <th width="150">{:L('operations_manage')}</th>
            </tr>
        </thead>
    	<tbody>
            <volist name="list" id="val" >
                <tr>
                    <td align="center"><input type="checkbox" class="J_checkitem" value="{$val.id}"></td>
                    <td align="center" width="20">{$val.id}</td>
                    <td align="center">{$val.addTime|date='Y-m-d H:i:s',###}</td>
                    <td align="center">{:L('store_channel'.$val['channel'])}</td>
                    <td align="center">{$val.name}</td>
                    <td align="center">{$val.regionName}</td>
                    <td align="center">{$val.realName}</td>
                    <if condition="$faultType eq 'modelFault'">      
                    <td align="center">{$val.imei}</td>
                    </if>
                    <volist name="attrList" id="item">
                        <td align="center">{$attrValue[$val['id']][$item['id']]['value']}</td>
                    </volist>                    
                   
                    <td align="center">       
                        <a href="javascript:;" class="J_showdialog" data-uri="{:U('fault/oppt', array('id'=>$val['id'],'opttype'=>'edit','faultType'=>$faultType))}" data-title="{:L('edit')} - {$val.id}"  data-id="edit" data-width="450" data-height="210">{:L('edit')}</a> | <a href="{:U('fault/verify',array('id'=>$val['id'],'faultType'=>$faultType))}">查看</a>  <if condition="isCanVerify($val['step'],$faultType)"> | <a href="{:U('fault/verify',array('id'=>$val['id'],'faultType'=>$faultType,'isVerify'=>1))}">审核</a></if>
                    </td>                    
                </tr>
            </volist>
            
    	</tbody>
    </table>
    </div>
    <div class="btn_wrap_fixed">
        <label class="select_all"><input type="checkbox" name="checkall" class="J_checkall">{:L('select_all')}/{:L('cancel')}</label>
        <input type="button" class="btn" data-tdtype="batch_action" data-acttype="ajax" data-uri="{:U('attribute/delete')}" data-name="id" data-msg="{:L('confirm_delete')}" value="{:L('delete')}" />
    </div>
</div>
<include file="public:footer" />
<script src="__STATIC__/js/jquery/plugins/jquery.treetable.js"></script>
<script>
$(function(){
    //initialState:'expanded'
    $("#J_cate_tree").treeTable({indent:20,treeColumn:1});
    $(".J_preview").preview();
});
</script>

</body>
</html>